import type { PageParams, PageResult } from '@/types/global'
import type { MovieItem } from '@/types/movieItem'
import { http } from '@/utils/http'

/**
 * 首页-热映电影list

 */
export const getMovieItemAPI = () => {
    return http<MovieItem[]>({
        method: 'GET',
        url: '/home/hot/movie',

    })
}



/**
 *电影详情页的item项

 */
export const getMovieDetailItemAPI = (CId: string) => {
    return http<MovieItem>({
        method: 'GET',
        url: `/cinema/detail/${CId}`,
    })
}


/**
 *影院页-所有热映的电影 (如果有预售电影则包括部分)

 */
export const getCinemaHotMovieAllAPI = () => {
    return http<MovieItem[]>({
        method: 'GET',
        url: '/cinema/hotMovieAll',
    })
}
